//
//  PlSAppSpecifier.h
//  Injector
//
//  Created by ∞ on 13/11/07.
//  Copyright 2007 Emanuele Vulcano. All rights reserved.
//

#import <Cocoa/Cocoa.h>

extern const double kPlSAnyVersion;

@interface PlSAppSpecifier : NSObject {
	NSString* bundleIdentifier;
	double minVersion;
	double maxVersion;
}

@property(readonly) NSString* bundleIdentifier;
@property(readonly) double minVersion;
@property(readonly) double maxVersion;

- (id) initWithBundleIdentifier:(NSString*) ident
					 minVersion:(double) minV
					 maxVersion:(double) maxV;

+ (id) anyApplication;
+ (id) specifierWithBundleIdentifier:(NSString*) ident
						  minVersion:(double) minV
						  maxVersion:(double) maxV;

+ (BOOL) anySpecifier:(NSArray*) specs isCompatibleWithApplication:(NSBundle*) app;
- (BOOL) isCompatibleWithApplication:(NSBundle*) app;

@end
